package ${classPath}.serviceComs;

import com.uc.mapi.client.constant.UcvrmsSSIDConstant;
import com.uc.mapi.client.rpc.RemoteServiceHandler;
import com.zuche.baseModules.openAPI.annotation.ServiceComDesc;
import com.zuche.baseModules.openAPI.core.component.AbstractServiceCom;
import com.zuche.baseModules.openAPI.core.context.RequestContext;
import com.zuche.framework.remote.RemoteType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * @description:${serviceDesc}
 * @author: 张德长 dechang.zhang@ucarinc.com
 * @date: 2018/11/6 17:08:55
 * @version:1.0
 */
@ServiceComDesc(id = "${serviceId}",paramClass="${className}Param.class")
public class ${className}ServiceCom extends AbstractServiceCom {

    /**
     * 日志记录器
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(${className}ServiceCom.class);

    @SuppressWarnings("rawtypes")
    @Override
    public Object invoke() {
        LOGGER.info(" ${serviceDesc}");
${className}Param param = (${className}Param)RequestContext.getParamMap();
        //Map
<String, Object> param = ()RequestContext.getParamMap();
        //${serverConst}=${server};
        return RemoteServiceHandler.execuetRemoteServiceForMap(UcvrmsSSIDConstant.${serverConst},
                param, RemoteType.TCP);
    }
}